<?php
/**
 *
 * (model)
 */
namespace App\Models\Operation;

use App\Models\Basics\SysCountry;
use Illuminate\Database\Eloquent\Model;
class AdsError extends Model
{
    protected $table = 'operation_ads_error';

    protected $guarded = [];

    public $timestamps = false;

    public static function errorRecord($error){
        return self::query()->insert($error);
    }

    public function country()
    {
        return $this->belongsTo(SysCountry::class,'country_id');
    }
}
